<!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8">
    <title>主页面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Le styles -->
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">

    <!--[if lte IE 6]>
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-ie6.css">
    <![endif]-->
    <!--[if lte IE 7]>
    <link rel="stylesheet" type="text/css" href="bootstrap/css/ie.css">
    <![endif]-->

    <style type="text/css">
      body {
        padding-top: 20px;
        padding-bottom: 40px;
      }

      /* Custom container */
      .container-narrow {
        margin: 0 auto;
        max-width: 700px;
        _width:700px;
      }
      .container-narrow > hr {
        margin: 30px 0;
      }

      /* Main marketing message and sign up button */
      .jumbotron {
        margin: 60px 0;
        text-align: center;
      }
      .jumbotron h1 {
        font-size: 72px;
        line-height: 1;
      }
      .jumbotron .btn {
        font-size: 21px;
        padding: 14px 24px;
      }

      /* Supporting marketing content */
      .marketing {
        margin: 60px 0;
      }
      .marketing p + h4 {
        margin-top: 28px;
      }
    </style>

    

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
    <![endif]-->
    <!-- Fav and touch icons -->    
  </head>

<body>

    <div class="container-narrow">
      <div class="jumbotron">
        <p id="container0" style="display:none"><a class="btn btn-large btn-primary" href="./p-1.html" >查看详情</a></p>
        <p id="container1"><a class="btn btn-large btn-success" href="javascript:;" onclick="load('basic.xlsx')">通用模板填报</a></p>
        <p id="container2" style="display:none"><a class="btn btn-large btn-success" href="javascript:;" onclick="load('finance.xlsx')">财务公司填报</a></p>
        <p id="container3" style="display:none"><a class="btn btn-large btn-success" href="javascript:;" onclick="load('salesreturn.xlsx')">地产销售回笼</a></p>
      </div>
    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->

    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>
    <!--[if lte IE 7]>
    <script type="text/javascript" src="js/bootstrap-ie.js"></script>
    <script type="text/javascript" src="js/json2.js"></script>
    
    <![endif]-->
    <script type="text/javascript">
    function getParameterByName(name) {
      name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
      var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
      results = regex.exec(location.search);
      return results == null ? "": decodeURIComponent(results[1]);
    }

    function load(filetype){
      //alert(filetype)
      window.external.openTemplate(filetype)
    }

    $(function(){
		var corpname = getParameterByName("corpname")
		window.token_value =  getParameterByName("access_token")
		//alert(window.token_value)
		if (corpname == '保利财务有限公司'){
			$("#container2").show();
		}
		if (corpname =="保利置业集团有限公司" || corpname =="保利南方集团有限公司" ){
			$("#container3").show();
		}
		if (corpname =="中国保利集团有限公司" ){
			window.location.href="./p-1.html?access_token=" + window.token_value
		}
    })
    </script>

</body></html>
